<include file="public@header" />
</head>
<body>
	<div class="wrap">
		<ul class="nav nav-tabs">
			<li><a href="{:url('index')}">售电公司列表</a></li>
			<li class="active"><a href="">编辑</a></li>
		</ul>
		<form method="post" class="form-horizontal js-ajax-form margin-top-20" action="{:url('edit')}">
			<div class="form-group">
				<label for="input-company" class="col-sm-2 control-label"><span class="form-required">*</span>公司名称</label>
				<div class="col-md-6 col-sm-10">
					<input type="text" class="form-control" id="input-company" name="company" required value="{$result.company}">
				</div>
			</div>
			<div class="form-group">
				<label for="input-corporation" class="col-sm-2 control-label"><span class="form-required">*</span>法人</label>
				<div class="col-md-6 col-sm-10">
					<input type="text" class="form-control" value="{$result.corporation}" required id="input-corporation" name="corporation">
				</div>
			</div>
			<div class="form-group">
				<label for="select-area" class="col-sm-2 control-label"><span class="form-required">*</span>注册地区</label>
				<div class="col-md-6 col-sm-10">
					<select class="form-control" id="select-area" name="area" required>
						<option >请选择</option>
						<volist name="areaslist" id="vo">
							<option value="{$vo.areaid}" <eq name="result.area" value="$vo.areaid">selected</eq> >{$vo.name}</option>
						</volist>
					</select>
				</div>
			</div>
			<div class="form-group">
				<label for="input-address" class="col-sm-2 control-label">详细地址</label>
				<div class="col-md-6 col-sm-10">
					<input type="text" class="form-control" id="input-address" name="address" value="{$result.address}">
				</div>
			</div>
			<div class="form-group">
				<label for="input-regtime" class="col-sm-2 control-label"><span class="form-required">*</span>成立时间</label>
				<div class="col-md-6 col-sm-10">
					<input class="form-control js-bootstrap-date" required data-max-date="{:date('Y-m-d')}" type="text" name="regtime" id="input-regtime"
						   value="{$result.regtime|date='Y-m-d',###}">
				</div>
			</div>
			<div class="form-group">
				<label for="input-registered_capital" class="col-sm-2 control-label"><span class="form-required">*</span>注册资金</label>
				<div class="col-md-6 col-sm-10 input-group" style="width:200px;padding: 0 15px;">
					<input type="number" class="form-control" id="input-registered_capital" required name="registered_capital" value="{$result.registered_capital}">
					<span class="input-group-addon">万元</span>
				</div>
			</div>
			<div class="form-group">
				<label for="input-currency" class="col-sm-2 control-label"><span class="form-required">*</span>货币种类</label>
				<div class="col-md-6 col-sm-10">
					<input class="form-control" type="text" style="width:400px;" required value="{$result.cname}"
						   placeholder="请选择币种" onclick="doSelectLayer(this);"
						   data-url="{:url('resource/currency/select')}" data-id="input-currency" name="layer_temp[1]"
						   readonly/>
					<input class="form-control" type="hidden" value="{$result.currency}" name="currency"
						   id="input-currency"/>
				</div>
			</div>
			<div class="form-group">
				<label for="input-phone" class="col-sm-2 control-label">联系方式</label>
				<div class="col-md-6 col-sm-10">
					<input type="text" class="form-control" id="input-phone" name="phone" value="{$result.phone}" >
				</div>
			</div>
			<div class="form-group">
				<label for="input-email" class="col-sm-2 control-label">邮箱</label>
				<div class="col-md-6 col-sm-10">
					<input type="email" class="form-control" id="input-email" name="email" value="{$result.email}" >
				</div>
			</div>
			<div class="form-group">
				<label for="input-publicity" class="col-sm-2 control-label"><span class="form-required">*</span>公示情况</label>
				<div class="col-md-6 col-sm-10">
					<input class="form-control" type="text" style="width:400px;" required value="{$result.bname}"
						   placeholder="请选择公示情况" onclick="doSelectLayer(this);"
						   data-url="{:url('customer_nature/select',['type'=>4])}" data-id="input-publicity" name="layer_temp[2]"
						   readonly/>
					<input class="form-control" type="hidden" value="{$result.publicity}" name="publicity"
						   id="input-publicity"/>
				</div>
			</div>
			<div class="form-group">
				<label for="textarea-remark" class="col-sm-2 control-label">备注</label>
				<div class="col-md-6 col-sm-10">
					<textarea name="remark" class="form-control" id="textarea-remark" rows="3">{$result.remark}</textarea>
				</div>
			</div>
			<div class="form-group">
				<div class="col-sm-offset-2 col-sm-10">
					<input type="hidden" name="id" value="{$result.id}"/>
					<button type="submit" class="btn btn-primary js-ajax-submit">{:lang('SAVE')}</button>
					<a class="btn btn-default" href="javascript:history.back(-1);">返回</a>
				</div>
			</div>
		</form>
	</div>
<script src="__STATIC__/js/admin.js"></script>
</body>
</html>